package cn.bdqn.test;

import java.util.List;

import cn.bdqn.dao.Deptdao;
import cn.bdqn.daoImpl.DeptdaoImpl;
import cn.bdqn.pojo.Dept;
import cn.bdqn.service.Deptservice;
import cn.bdqn.service.DeptserviceImpl;

public class test {
public static void main(String[] args) {
	Deptservice deptservice = new DeptserviceImpl();
	Dept dept = new Dept()
	;

	dept.setDname("哈哈");
	dept.setLoc("哪里");
	dept.setDeptno(5);

	 deptservice.update(dept);

       List<Dept> list = deptservice.getDepts();
       for(Dept de:list){
    	   System.out.println(de);
       }
       System.out.println(deptservice.getCounts());
                 
}
}
